home *** CD-ROM | disk | FTP | other *** search
/ CD/PC Actual 3 / CD ACTUAL 3.iso / linux / docs / linux-do / programm / lpg-0.4 / lpg-0 / LPG / graphic.tex / node13_ct.html < prev    next >
LaTeX Document  |  1995-03-28  |  6.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: Plain text[LF] default
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 4e 63 | 75 72 73 65 73 20 2d 20 |ts of Nc|urses - |
|000000b0| 49 6e 74 72 6f 64 75 63 | 74 69 6f 6e 3c 2f 54 49 |Introduc|tion</TI|
|000000c0| 54 4c 45 3e 0a 0a 3c 4d | 45 54 41 20 48 54 54 50 |TLE>..<M|ETA HTTP|
|000000d0| 2d 45 51 55 49 56 3d 22 | 43 6f 6e 74 65 6e 74 2d |-EQUIV="|Content-|
|000000e0| 54 79 70 65 22 20 43 4f | 4e 54 45 4e 54 3d 22 74 |Type" CO|NTENT="t|
|000000f0| 65 78 74 2f 68 74 6d 6c | 3b 20 63 68 61 72 73 65 |ext/html|; charse|
|00000100| 74 3d 75 74 66 2d 38 22 | 3e 0a 3c 4d 45 54 41 20 |t=utf-8"|>.<META |
|00000110| 4e 41 4d 45 3d 22 76 69 | 65 77 70 6f 72 74 22 20 |NAME="vi|ewport" |
|00000120| 43 4f 4e 54 45 4e 54 3d | 22 77 69 64 74 68 3d 64 |CONTENT=|"width=d|
|00000130| 65 76 69 63 65 2d 77 69 | 64 74 68 2c 20 69 6e 69 |evice-wi|dth, ini|
|00000140| 74 69 61 6c 2d 73 63 61 | 6c 65 3d 31 2e 30 22 3e |tial-sca|le=1.0">|
|00000150| 0a 3c 4d 45 54 41 20 4e | 41 4d 45 3d 22 47 65 6e |.<META N|AME="Gen|
|00000160| 65 72 61 74 6f 72 22 20 | 43 4f 4e 54 45 4e 54 3d |erator" |CONTENT=|
|00000170| 22 4c 61 54 65 58 32 48 | 54 4d 4c 20 76 32 30 32 |"LaTeX2H|TML v202|
|00000180| 32 22 3e 0a 0a 3c 4c 49 | 4e 4b 20 52 45 4c 3d 22 |2">..<LI|NK REL="|
|00000190| 53 54 59 4c 45 53 48 45 | 45 54 22 20 48 52 45 46 |STYLESHE|ET" HREF|
|000001a0| 3d 22 67 72 61 70 68 69 | 63 2e 63 73 73 22 3e 0a |="graphi|c.css">.|
|000001b0| 0a 3c 4c 49 4e 4b 20 52 | 45 4c 3d 22 6e 65 78 74 |.<LINK R|EL="next|
|000001c0| 22 20 48 52 45 46 3d 22 | 6e 6f 64 65 31 34 5f 6d |" HREF="|node14_m|
|000001d0| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 4c 49 4e 4b 20 52 |n.html">|.<LINK R|
|000001e0| 45 4c 3d 22 70 72 65 76 | 69 6f 75 73 22 20 48 52 |EL="prev|ious" HR|
|000001f0| 45 46 3d 22 6e 6f 64 65 | 35 5f 6d 6e 2e 68 74 6d |EF="node|5_mn.htm|
|00000200| 6c 22 3e 0a 3c 4c 49 4e | 4b 20 52 45 4c 3d 22 75 |l">.<LIN|K REL="u|
|00000210| 70 22 20 48 52 45 46 3d | 22 6e 6f 64 65 31 5f 6d |p" HREF=|"node1_m|
|00000220| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 4c 49 4e 4b 20 52 |n.html">|.<LINK R|
|00000230| 45 4c 3d 22 6e 65 78 74 | 22 20 48 52 45 46 3d 22 |EL="next|" HREF="|
|00000240| 6e 6f 64 65 31 34 5f 6d | 6e 2e 68 74 6d 6c 22 3e |node14_m|n.html">|
|00000250| 0a 3c 2f 48 45 41 44 3e | 0a 20 0a 3c 42 4f 44 59 |.</HEAD>|. .<BODY|
|00000260| 20 62 67 63 6f 6c 6f 72 | 3d 22 23 66 66 66 66 66 | bgcolor|="#fffff|
|00000270| 66 22 20 74 65 78 74 3d | 22 23 30 30 30 30 30 30 |f" text=|"#000000|
|00000280| 22 20 6c 69 6e 6b 3d 22 | 23 39 39 34 34 45 45 22 |" link="|#9944EE"|
|00000290| 20 76 6c 69 6e 6b 3d 22 | 23 30 30 30 30 66 66 22 | vlink="|#0000ff"|
|000002a0| 20 61 6c 69 6e 6b 3d 22 | 23 30 30 66 66 30 30 22 | alink="|#00ff00"|
|000002b0| 3e 0a 0a 3c 48 31 3e 3c | 41 20 49 44 3d 22 53 45 |>..<H1><|A ID="SE|
|000002c0| 43 54 49 4f 4e 30 30 31 | 33 30 30 30 30 30 30 30 |CTION001|30000000|
|000002d0| 30 30 30 30 30 30 30 30 | 30 22 3e 0a 4e 63 75 72 |00000000|0">.Ncur|
|000002e0| 73 65 73 20 2d 20 49 6e | 74 72 6f 64 75 63 74 69 |ses - In|troducti|
|000002f0| 6f 6e 3c 2f 41 3e 0a 3c | 2f 48 31 3e 0a 0a 3c 50 |on</A>.<|/H1>..<P|
|00000300| 3e 0a 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |>.The fo|llowing |
|00000310| 74 65 72 6d 69 6e 6f 6c | 6f 67 79 20 77 69 6c 6c |terminol|ogy will|
|00000320| 20 62 65 20 75 73 65 64 | 20 69 6e 20 74 68 69 73 | be used| in this|
|00000330| 20 63 68 61 70 74 65 72 | 3a 0a 0a 3c 50 3e 0a 0a | chapter|:..<P>..|
|00000340| 3c 55 4c 3e 0a 3c 4c 49 | 3e 77 69 6e 64 6f 77 20 |<UL>.<LI|>window |
|00000350| 2d 20 69 73 20 61 6e 20 | 69 6e 74 65 72 6e 61 6c |- is an |internal|
|00000360| 20 72 65 70 72 65 73 65 | 6e 74 61 74 69 6f 6e 20 | represe|ntation |
|00000370| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 61 6e 20 69 6d |containi|ng an im|
|00000380| 61 67 65 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |age. | |
|00000390| 20 20 20 20 20 20 6f 66 | 20 61 20 70 61 72 74 20 | of| a part |
|000003a0| 6f 66 20 74 68 65 20 73 | 63 72 65 65 6e 2e 20 57 |of the s|creen. W|
|000003b0| 49 4e 44 4f 57 20 69 73 | 20 64 65 66 69 6e 65 64 |INDOW is| defined|
|000003c0| 20 69 6e 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | in. | |
|000003d0| 20 20 20 20 20 20 3c 49 | 3e 6e 63 75 72 73 65 73 | <I|>ncurses|
|000003e0| 2e 68 3c 2f 49 3e 2e 0a | 3c 2f 4c 49 3e 0a 3c 4c |.h</I>..|</LI>.<L|
|000003f0| 49 3e 73 63 72 65 65 6e | 20 2d 20 69 73 20 61 20 |I>screen| - is a |
|00000400| 77 69 6e 64 6f 77 20 77 | 69 74 68 20 74 68 65 20 |window w|ith the |
|00000410| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 65 6e 74 69 |size of |the enti|
|00000420| 72 65 20 73 63 72 65 65 | 6e 20 28 66 72 6f 6d 20 |re scree|n (from |
|00000430| 74 68 65 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |the. | |
|00000440| 20 20 20 20 20 20 75 70 | 70 65 72 20 6c 65 66 74 | up|per left|
|00000450| 20 74 6f 20 74 68 65 20 | 6c 6f 77 65 72 20 72 69 | to the |lower ri|
|00000460| 67 68 74 29 2e 20 3c 49 | 3e 53 74 64 73 63 72 3c |ght). <I|>Stdscr<|
|00000470| 2f 49 3e 20 61 6e 64 0a | 20 20 20 20 20 20 20 20 |/I> and.| |
|00000480| 20 20 20 20 20 20 20 20 | 20 20 3c 49 3e 63 75 72 | | <I>cur|
|00000490| 73 63 72 3c 2f 49 3e 20 | 61 72 65 20 73 63 72 65 |scr</I> |are scre|
|000004a0| 65 6e 73 2e 0a 3c 2f 4c | 49 3e 0a 3c 4c 49 3e 74 |ens..</L|I>.<LI>t|
|000004b0| 65 72 6d 69 6e 61 6c 20 | 2d 20 69 73 20 61 20 73 |erminal |- is a s|
|000004c0| 70 65 63 69 61 6c 20 73 | 63 72 65 65 6e 20 77 69 |pecial s|creen wi|
|000004d0| 74 68 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |th infor|mation a|
|000004e0| 62 6f 75 74 20 77 68 61 | 74 20 74 68 65 20 73 63 |bout wha|t the sc|
|000004f0| 72 65 65 6e 0a 20 20 20 | 20 20 20 20 20 20 20 20 |reen. | |
|00000500| 20 20 20 20 20 20 20 20 | 20 63 75 72 72 65 6e 74 | | current|
|00000510| 6c 79 20 6c 6f 6f 6b 73 | 20 6c 69 6b 65 2e 0a 3c |ly looks| like..<|
|00000520| 2f 4c 49 3e 0a 3c 4c 49 | 3e 76 61 72 69 61 62 6c |/LI>.<LI|>variabl|
|00000530| 65 73 20 2d 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |es - the| followi|
|00000540| 6e 67 20 76 61 72 69 61 | 62 6c 65 73 20 61 6e 64 |ng varia|bles and|
|00000550| 20 63 6f 6e 73 74 61 6e | 74 73 20 64 65 66 69 6e | constan|ts defin|
|00000560| 65 64 20 69 6e 0a 20 20 | 20 20 20 20 20 20 20 20 |ed in. | |
|00000570| 20 20 20 20 20 20 20 20 | 20 20 20 3c 49 3e 6e 63 | | <I>nc|
|00000580| 75 72 73 65 73 2e 68 3c | 2f 49 3e 0a 20 20 20 20 |urses.h<|/I>. |
|00000590| 0a 3c 55 4c 3e 0a 3c 4c | 49 3e 57 49 4e 44 4f 57 |.<UL>.<L|I>WINDOW|
|000005a0| 20 2a 63 75 72 73 63 72 | 20 2d 20 63 75 72 72 65 | *curscr| - curre|
|000005b0| 6e 74 20 73 63 72 65 65 | 6e 0a 3c 2f 4c 49 3e 0a |nt scree|n.</LI>.|
|000005c0| 3c 4c 49 3e 57 49 4e 44 | 4f 57 20 2a 73 74 64 73 |<LI>WIND|OW *stds|
|000005d0| 63 72 20 2d 20 73 74 61 | 6e 64 61 72 64 20 73 63 |cr - sta|ndard sc|
|000005e0| 72 65 65 6e 0a 3c 2f 4c | 49 3e 0a 3c 4c 49 3e 69 |reen.</L|I>.<LI>i|
|000005f0| 6e 74 20 4c 49 4e 45 53 | 20 2d 20 6c 69 6e 65 73 |nt LINES| - lines|
|00000600| 20 6f 6e 20 74 68 65 20 | 74 65 72 6d 69 6e 61 6c | on the |terminal|
|00000610| 0a 3c 2f 4c 49 3e 0a 3c | 4c 49 3e 69 6e 74 20 43 |.</LI>.<|LI>int C|
|00000620| 4f 4c 53 20 2d 20 63 6f | 6c 75 6d 6e 73 20 6f 6e |OLS - co|lumns on|
|00000630| 20 74 68 65 20 74 65 72 | 6d 69 6e 61 6c 0a 3c 2f | the ter|minal.</|
|00000640| 4c 49 3e 0a 3c 4c 49 3e | 62 6f 6f 6c 20 54 52 55 |LI>.<LI>|bool TRU|
|00000650| 45 20 2d 20 74 72 75 65 | 20 66 6c 61 67 2c 20 31 |E - true| flag, 1|
|00000660| 0a 3c 2f 4c 49 3e 0a 3c | 4c 49 3e 62 6f 6f 6c 20 |.</LI>.<|LI>bool |
|00000670| 46 41 4c 53 45 20 2d 20 | 66 61 6c 73 65 20 66 6c |FALSE - |false fl|
|00000680| 61 67 2c 20 30 0a 3c 2f | 4c 49 3e 0a 3c 4c 49 3e |ag, 0.</|LI>.<LI>|
|00000690| 69 6e 74 20 45 52 52 20 | 2d 20 65 72 72 6f 72 20 |int ERR |- error |
|000006a0| 66 6c 61 67 2c 20 2d 31 | 0a 3c 2f 4c 49 3e 0a 3c |flag, -1|.</LI>.<|
|000006b0| 4c 49 3e 69 6e 74 20 4f | 4b 20 2d 20 6f 6b 20 66 |LI>int O|K - ok f|
|000006c0| 6c 61 67 2c 20 30 0a 20 | 20 20 20 0a 3c 2f 4c 49 |lag, 0. | .</LI|
|000006d0| 3e 0a 3c 2f 55 4c 3e 0a | 3c 2f 4c 49 3e 0a 3c 4c |>.</UL>.|</LI>.<L|
|000006e0| 49 3e 66 75 6e 63 74 69 | 6f 6e 73 20 2d 20 69 6e |I>functi|ons - in|
|000006f0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 64 65 | the fun|ction de|
|00000700| 73 63 72 69 70 74 69 6f | 6e 20 74 68 65 20 61 72 |scriptio|n the ar|
|00000710| 67 75 6d 65 6e 74 73 20 | 61 72 65 20 6f 66 20 74 |guments |are of t|
|00000720| 68 65 0a 20 20 20 20 20 | 20 20 20 20 66 6f 6c 6c |he. | foll|
|00000730| 6f 77 69 6e 67 20 74 79 | 70 65 3a 0a 20 20 20 20 |owing ty|pe:. |
|00000740| 0a 3c 55 4c 3e 0a 3c 4c | 49 3e 77 69 6e 20 2d 20 |.<UL>.<L|I>win - |
|00000750| 57 49 4e 44 4f 57 2a 0a | 3c 2f 4c 49 3e 0a 3c 4c |WINDOW*.|</LI>.<L|
|00000760| 49 3e 62 66 20 2d 20 62 | 6f 6f 6c 0a 3c 2f 4c 49 |I>bf - b|ool.</LI|
|00000770| 3e 0a 3c 4c 49 3e 63 68 | 20 2d 20 63 68 74 79 70 |>.<LI>ch| - chtyp|
|00000780| 65 0a 3c 2f 4c 49 3e 0a | 3c 4c 49 3e 73 74 72 20 |e.</LI>.|<LI>str |
|00000790| 2d 20 63 68 61 72 2a 0a | 3c 2f 4c 49 3e 0a 3c 4c |- char*.|</LI>.<L|
|000007a0| 49 3e 63 68 73 74 72 20 | 2d 20 63 68 74 79 70 65 |I>chstr |- chtype|
|000007b0| 2a 0a 3c 2f 4c 49 3e 0a | 3c 4c 49 3e 66 6d 74 20 |*.</LI>.|<LI>fmt |
|000007c0| 2d 20 63 68 61 72 2a 0a | 3c 2f 4c 49 3e 0a 3c 4c |- char*.|</LI>.<L|
|000007d0| 49 3e 6f 74 68 65 72 77 | 69 73 65 20 69 6e 74 0a |I>otherw|ise int.|
|000007e0| 20 20 20 20 0a 3c 2f 4c | 49 3e 0a 3c 2f 55 4c 3e | .</L|I>.</UL>|
|000007f0| 0a 3c 2f 4c 49 3e 0a 3c | 2f 55 4c 3e 0a 0a 3c 50 |.</LI>.<|/UL>..<P|
|00000800| 3e 0a 55 73 75 61 6c 6c | 79 20 61 20 70 72 6f 67 |>.Usuall|y a prog|
|00000810| 72 61 6d 20 75 73 69 6e | 67 20 74 68 65 20 6e 63 |ram usin|g the nc|
|00000820| 75 72 73 65 73 20 6c 69 | 62 72 61 72 79 20 6c 6f |urses li|brary lo|
|00000830| 6f 6b 73 20 6c 69 6b 65 | 20 74 68 69 73 3a 0a 0a |oks like| this:..|
|00000840| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 20 |<P>.<BR>|.<IMG. |
|00000850| 53 54 59 4c 45 3d 22 22 | 20 53 52 43 3d 22 69 6d |STYLE=""| SRC="im|
|00000860| 67 36 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |g6.png".| ALT="\b|
|00000870| 65 67 69 6e 7b 74 73 63 | 72 65 65 6e 7d 0a 5c 62 |egin{tsc|reen}.\b|
|00000880| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 2e 2e |egin{ver|batim}..|
|00000890| 2e 22 3e 0a 3c 42 52 3e | 0a 0a 3c 50 3e 0a 49 6e |.">.<BR>|..<P>.In|
|000008a0| 63 6c 75 64 69 6e 67 20 | 3c 49 3e 6e 63 75 72 73 |cluding |<I>ncurs|
|000008b0| 65 73 2e 68 3c 2f 49 3e | 20 77 69 6c 6c 20 64 65 |es.h</I>| will de|
|000008c0| 66 69 6e 65 20 76 61 72 | 69 61 62 6c 65 73 20 61 |fine var|iables a|
|000008d0| 6e 64 20 74 79 70 65 73 | 20 66 6f 72 20 6e 63 75 |nd types| for ncu|
|000008e0| 72 73 65 73 2c 20 73 75 | 63 68 0a 61 73 20 57 49 |rses, su|ch.as WI|
|000008f0| 4e 44 4f 57 20 61 6e 64 | 20 66 75 6e 63 74 69 6f |NDOW and| functio|
|00000900| 6e 20 70 72 6f 74 6f 74 | 79 70 65 73 2e 20 49 74 |n protot|ypes. It|
|00000910| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 69 | automat|ically i|
|00000920| 6e 63 6c 75 64 65 73 20 | 3c 49 3e 73 74 64 69 6f |ncludes |<I>stdio|
|00000930| 2e 68 3c 2f 49 3e 2c 0a | 3c 49 3e 73 74 64 61 72 |.h</I>,.|<I>stdar|
|00000940| 67 2e 68 3c 2f 49 3e 2c | 20 3c 49 3e 74 65 72 6d |g.h</I>,| <I>term|
|00000950| 69 6f 73 2e 68 3c 2f 49 | 3e 20 61 6e 64 20 3c 49 |ios.h</I|> and <I|
|00000960| 3e 75 6e 63 74 72 6c 2e | 68 3c 2f 49 3e 2e 0a 0a |>unctrl.|h</I>...|
|00000970| 3c 50 3e 0a 3c 42 3e 69 | 6e 69 74 73 63 72 28 29 |<P>.<B>i|nitscr()|
|00000980| 3c 2f 42 3e 20 69 73 20 | 75 73 65 64 20 74 6f 20 |</B> is |used to |
|00000990| 69 6e 69 74 69 61 6c 69 | 7a 65 20 74 68 65 20 6e |initiali|ze the n|
|000009a0| 63 75 72 73 65 73 20 64 | 61 74 61 20 73 74 72 75 |curses d|ata stru|
|000009b0| 63 74 75 72 65 73 20 61 | 6e 64 20 74 6f 0a 72 65 |ctures a|nd to.re|
|000009c0| 61 64 20 74 68 65 20 70 | 72 6f 70 65 72 20 74 65 |ad the p|roper te|
|000009d0| 72 6d 69 6e 66 6f 20 66 | 69 6c 65 2e 20 4d 65 6d |rminfo f|ile. Mem|
|000009e0| 6f 72 79 20 66 6f 72 0a | 3c 49 3e 73 74 64 73 63 |ory for.|<I>stdsc|
|000009f0| 72 3c 2f 49 3e 20 61 6e | 64 20 3c 49 3e 63 75 72 |r</I> an|d <I>cur|
|00000a00| 73 63 72 3c 2f 49 3e 20 | 77 69 6c 6c 20 62 65 20 |scr</I> |will be |
|00000a10| 61 6c 6c 6f 63 61 74 65 | 64 2e 20 49 66 20 61 6e |allocate|d. If an|
|00000a20| 20 65 72 72 6f 72 20 6f | 63 63 75 72 73 2c 0a 69 | error o|ccurs,.i|
|00000a30| 6e 69 74 73 63 72 20 77 | 69 6c 6c 20 72 65 74 75 |nitscr w|ill retu|
|00000a40| 72 6e 20 45 52 52 2c 20 | 6f 74 68 65 72 77 69 73 |rn ERR, |otherwis|
|00000a50| 65 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 3c |e a poin|ter to <|
|00000a60| 49 3e 73 74 64 73 63 72 | 3c 2f 49 3e 20 77 69 6c |I>stdscr|</I> wil|
|00000a70| 6c 20 62 65 0a 72 65 74 | 75 72 6e 65 64 2e 20 20 |l be.ret|urned. |
|00000a80| 41 64 64 69 74 69 6f 6e | 61 6c 6c 79 2c 20 74 68 |Addition|ally, th|
|00000a90| 65 0a 73 63 72 65 65 6e | 20 77 69 6c 6c 20 62 65 |e.screen| will be|
|00000aa0| 20 65 72 61 73 65 64 20 | 61 6e 64 20 3c 49 3e 4c | erased |and <I>L|
|00000ab0| 49 4e 45 53 3c 2f 49 3e | 20 61 6e 64 20 3c 49 3e |INES</I>| and <I>|
|00000ac0| 43 4f 4c 53 3c 2f 49 3e | 20 77 69 6c 6c 20 62 65 |COLS</I>| will be|
|00000ad0| 20 69 6e 69 74 69 61 6c | 69 7a 65 64 2e 0a 0a 3c | initial|ized...<|
|00000ae0| 50 3e 0a 3c 42 3e 65 6e | 64 77 69 6e 28 29 3c 2f |P>.<B>en|dwin()</|
|00000af0| 42 3e 20 77 69 6c 6c 20 | 63 6c 65 61 6e 20 75 70 |B> will |clean up|
|00000b00| 20 61 6c 6c 20 61 6c 6c | 6f 63 61 74 65 64 20 72 | all all|ocated r|
|00000b10| 65 73 6f 75 72 63 65 73 | 20 66 72 6f 6d 20 6e 63 |esources| from nc|
|00000b20| 75 72 73 65 73 20 61 6e | 64 0a 72 65 73 74 6f 72 |urses an|d.restor|
|00000b30| 65 20 74 68 65 20 74 74 | 79 20 6d 6f 64 65 73 20 |e the tt|y modes |
|00000b40| 74 6f 20 74 68 65 20 73 | 74 61 74 75 73 20 74 68 |to the s|tatus th|
|00000b50| 65 79 20 68 61 64 20 62 | 65 66 6f 72 65 20 63 61 |ey had b|efore ca|
|00000b60| 6c 6c 69 6e 67 20 0a 3c | 42 3e 69 6e 69 74 73 63 |lling .<|B>initsc|
|00000b70| 72 28 29 3c 2f 42 3e 2e | 20 49 74 20 6d 75 73 74 |r()</B>.| It must|
|00000b80| 20 62 65 20 63 61 6c 6c | 65 64 20 62 65 66 6f 72 | be call|ed befor|
|00000b90| 65 20 61 6e 79 20 6f 74 | 68 65 72 20 66 75 6e 63 |e any ot|her func|
|00000ba0| 74 69 6f 6e 20 66 72 6f | 6d 20 74 68 65 20 0a 6e |tion fro|m the .n|
|00000bb0| 63 75 72 73 65 73 20 6c | 69 62 72 61 72 79 20 61 |curses l|ibrary a|
|00000bc0| 6e 64 20 3c 42 3e 65 6e | 64 77 69 6e 28 29 3c 2f |nd <B>en|dwin()</|
|00000bd0| 42 3e 20 6d 75 73 74 20 | 62 65 20 63 61 6c 6c 65 |B> must |be calle|
|00000be0| 64 20 62 65 66 6f 72 65 | 20 79 6f 75 72 20 70 72 |d before| your pr|
|00000bf0| 6f 67 72 61 6d 0a 65 78 | 69 74 73 2e 20 57 68 65 |ogram.ex|its. Whe|
|00000c00| 6e 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 64 6f |n you wa|nt to do|
|00000c10| 20 6f 75 74 70 75 74 20 | 74 6f 20 6d 6f 72 65 20 | output |to more |
|00000c20| 74 68 61 6e 20 6f 6e 65 | 20 74 65 72 6d 69 6e 61 |than one| termina|
|00000c30| 6c 2c 20 79 6f 75 20 63 | 61 6e 20 75 73 65 0a 3c |l, you c|an use.<|
|00000c40| 42 3e 6e 65 77 74 65 72 | 6d 28 2e 2e 2e 29 3c 2f |B>newter|m(...)</|
|00000c50| 42 3e 20 69 6e 73 74 65 | 61 64 20 6f 66 20 3c 42 |B> inste|ad of <B|
|00000c60| 3e 69 6e 69 74 73 63 72 | 28 29 3c 2f 42 3e 2e 0a |>initscr|()</B>..|
|00000c70| 0a 3c 50 3e 0a 43 6f 6d | 70 69 6c 65 20 74 68 65 |.<P>.Com|pile the|
|00000c80| 20 70 72 6f 67 72 61 6d | 20 77 69 74 68 3a 0a 0a | program| with:..|
|00000c90| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 20 |<P>.<BR>|.<IMG. |
|00000ca0| 53 54 59 4c 45 3d 22 22 | 20 53 52 43 3d 22 69 6d |STYLE=""| SRC="im|
|00000cb0| 67 37 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |g7.png".| ALT="\b|
|00000cc0| 65 67 69 6e 7b 74 73 63 | 72 65 65 6e 7d 0a 5c 62 |egin{tsc|reen}.\b|
|00000cd0| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 67 63 |egin{ver|batim}gc|
|00000ce0| 63 20 5b 66 6c 61 67 73 | 5d 20 66 69 6c 65 73 20 |c [flags|] files |
|00000cf0| 2d 6c 6e 63 75 72 73 65 | 73 5c 65 6e 64 7b 76 65 |-lncurse|s\end{ve|
|00000d00| 72 62 61 74 69 6d 7d 0a | 5c 65 6e 64 7b 74 73 63 |rbatim}.|\end{tsc|
|00000d10| 72 65 65 6e 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |reen}">.|<BR>..<P|
|00000d20| 3e 0a 49 6e 20 66 6c 61 | 67 73 20 79 6f 75 20 63 |>.In fla|gs you c|
|00000d30| 61 6e 20 69 6e 63 6c 75 | 64 65 20 61 6e 79 74 68 |an inclu|de anyth|
|00000d40| 69 6e 67 20 79 6f 75 20 | 6c 69 6b 65 20 28 3c 49 |ing you |like (<I|
|00000d50| 3e 73 65 65 20 67 63 63 | 28 31 29 3c 2f 49 3e 29 |>see gcc|(1)</I>)|
|00000d60| 2e 20 53 69 6e 63 65 20 | 74 68 65 0a 70 61 74 68 |. Since |the.path|
|00000d70| 20 66 6f 72 20 6e 63 75 | 72 73 65 73 2e 68 20 68 | for ncu|rses.h h|
|00000d80| 61 73 20 63 68 61 6e 67 | 65 64 20 79 6f 75 20 68 |as chang|ed you h|
|00000d90| 61 76 65 20 74 6f 20 69 | 6e 63 6c 75 64 65 20 74 |ave to i|nclude t|
|00000da0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6c 69 6e |he follo|wing lin|
|00000db0| 65 3a 0a 0a 3c 50 3e 0a | 3c 42 52 3e 0a 3c 49 4d |e:..<P>.|<BR>.<IM|
|00000dc0| 47 0a 20 20 53 54 59 4c | 45 3d 22 22 20 53 52 43 |G. STYL|E="" SRC|
|00000dd0| 3d 22 69 6d 67 38 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img8.p|ng". ALT|
|00000de0| 3d 22 5c 62 65 67 69 6e | 7b 74 73 63 72 65 65 6e |="\begin|{tscreen|
|00000df0| 7d 0a 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |}.\begin|{verbati|
|00000e00| 6d 7d 2d 49 2f 75 73 72 | 2f 69 6e 63 6c 75 64 65 |m}-I/usr|/include|
|00000e10| 2f 6e 63 75 72 73 65 73 | 5c 65 6e 64 7b 76 65 72 |/ncurses|\end{ver|
|00000e20| 62 61 74 69 6d 7d 0a 5c | 65 6e 64 7b 74 73 63 72 |batim}.\|end{tscr|
|00000e30| 65 65 6e 7d 22 3e 0a 3c | 42 52 3e 0a 0a 3c 50 3e |een}">.<|BR>..<P>|
|00000e40| 0a 4f 74 68 65 72 77 69 | 73 65 2c 20 6e 63 75 72 |.Otherwi|se, ncur|
|00000e50| 73 65 73 2e 68 2c 20 6e | 74 65 72 6d 2e 68 2c 20 |ses.h, n|term.h, |
|00000e60| 74 65 72 6d 63 61 70 2e | 68 20 61 6e 64 20 75 6e |termcap.|h and un|
|00000e70| 63 74 72 6c 2e 68 20 77 | 69 6c 6c 20 6e 6f 74 20 |ctrl.h w|ill not |
|00000e80| 62 65 20 66 6f 75 6e 64 | 2e 20 0a 50 6f 73 73 69 |be found|. .Possi|
|00000e90| 62 6c 65 20 6f 74 68 65 | 72 20 66 6c 61 67 73 20 |ble othe|r flags |
|00000ea0| 66 6f 72 20 4c 69 6e 75 | 78 20 61 72 65 3a 0a 0a |for Linu|x are:..|
|00000eb0| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 20 |<P>.<BR>|.<IMG. |
|00000ec0| 53 54 59 4c 45 3d 22 22 | 20 53 52 43 3d 22 69 6d |STYLE=""| SRC="im|
|00000ed0| 67 39 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |g9.png".| ALT="\b|
|00000ee0| 65 67 69 6e 7b 74 73 63 | 72 65 65 6e 7d 0a 5c 62 |egin{tsc|reen}.\b|
|00000ef0| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 2d 4f |egin{ver|batim}-O|
|00000f00| 32 20 2d 61 6e 73 69 20 | 2d 57 61 6c 6c 20 2d 6d |2 -ansi |-Wall -m|
|00000f10| 34 38 36 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |486\end{|verbatim|
|00000f20| 7d 0a 5c 65 6e 64 7b 74 | 73 63 72 65 65 6e 7d 22 |}.\end{t|screen}"|
|00000f30| 3e 0a 3c 42 52 3e 0a 0a | 3c 50 3e 0a 3c 49 3e 4f |>.<BR>..|<P>.<I>O|
|00000f40| 32 3c 2f 49 3e 20 74 65 | 6c 6c 73 20 67 63 63 20 |2</I> te|lls gcc |
|00000f50| 74 6f 20 64 6f 20 73 6f | 6d 65 20 6f 70 74 69 6d |to do so|me optim|
|00000f60| 69 7a 61 74 69 6f 6e 2c | 20 3c 49 3e 2d 61 6e 73 |ization,| <I>-ans|
|00000f70| 69 3c 2f 49 3e 20 69 73 | 20 66 6f 72 20 61 6e 73 |i</I> is| for ans|
|00000f80| 69 0a 63 6f 6e 66 6f 72 | 6d 61 6e 74 20 63 2d 63 |i.confor|mant c-c|
|00000f90| 6f 64 65 2c 20 3c 49 3e | 2d 57 61 6c 6c 3c 2f 49 |ode, <I>|-Wall</I|
|00000fa0| 3e 20 77 69 6c 6c 20 70 | 72 69 6e 74 20 6f 75 74 |> will p|rint out|
|00000fb0| 20 61 6c 6c 20 77 61 72 | 6e 69 6e 67 73 2c 20 0a | all war|nings, .|
|00000fc0| 3c 49 3e 2d 6d 34 38 36 | 3c 2f 49 3e 20 77 69 6c |<I>-m486|</I> wil|
|00000fd0| 6c 20 75 73 65 20 6f 70 | 74 69 6d 69 7a 65 64 20 |l use op|timized |
|00000fe0| 63 6f 64 65 20 66 6f 72 | 20 61 6e 20 49 6e 74 65 |code for| an Inte|
|00000ff0| 6c 20 34 38 36 20 28 74 | 68 65 20 62 69 6e 61 72 |l 486 (t|he binar|
|00001000| 79 20 63 61 6e 20 62 65 | 0a 75 73 65 64 20 6f 6e |y can be|.used on|
|00001010| 20 61 6e 20 49 6e 74 65 | 6c 20 33 38 36 2c 20 74 | an Inte|l 386, t|
|00001020| 6f 6f 29 2e 0a 0a 3c 50 | 3e 0a 54 68 65 20 6e 63 |oo)...<P|>.The nc|
|00001030| 75 72 73 65 73 20 6c 69 | 62 72 61 72 79 20 63 61 |urses li|brary ca|
|00001040| 6e 20 62 65 20 66 6f 75 | 6e 64 20 69 6e 20 2f 75 |n be fou|nd in /u|
|00001050| 73 72 2f 6c 69 62 2f 2e | 20 20 54 68 65 72 65 20 |sr/lib/.| There |
|00001060| 61 72 65 20 74 68 72 65 | 65 20 76 65 72 73 69 6f |are thre|e versio|
|00001070| 6e 73 0a 6f 66 20 74 68 | 65 20 6e 63 75 72 73 65 |ns.of th|e ncurse|
|00001080| 73 20 6c 69 62 72 61 72 | 79 3a 0a 0a 3c 55 4c 3e |s librar|y:..<UL>|
|00001090| 0a 3c 4c 49 3e 3c 42 3e | 6c 69 62 6e 63 75 72 73 |.<LI><B>|libncurs|
|000010a0| 65 73 2e 61 3c 2f 42 3e | 20 74 68 65 20 6e 6f 72 |es.a</B>| the nor|
|000010b0| 6d 61 6c 20 6e 63 75 72 | 73 65 73 20 6c 69 62 72 |mal ncur|ses libr|
|000010c0| 61 72 79 2e 0a 3c 2f 4c | 49 3e 0a 3c 4c 49 3e 3c |ary..</L|I>.<LI><|
|000010d0| 42 3e 6c 69 62 64 63 75 | 72 73 65 73 2e 61 3c 2f |B>libdcu|rses.a</|
|000010e0| 42 3e 20 6e 63 75 72 73 | 65 73 20 66 6f 72 20 64 |B> ncurs|es for d|
|000010f0| 65 62 75 67 67 69 6e 67 | 2e 0a 3c 2f 4c 49 3e 0a |ebugging|..</LI>.|
|00001100| 3c 4c 49 3e 3c 42 3e 6c | 69 62 70 63 75 72 73 65 |<LI><B>l|ibpcurse|
|00001110| 73 2e 61 3c 2f 42 3e 20 | 6e 63 75 72 73 65 73 20 |s.a</B> |ncurses |
|00001120| 66 6f 72 20 70 72 6f 66 | 69 6c 69 6e 67 20 28 73 |for prof|iling (s|
|00001130| 69 6e 63 65 20 31 2e 38 | 2e 36 0a 20 20 20 20 20 |ince 1.8|.6. |
|00001140| 20 20 20 20 6c 69 62 70 | 63 75 72 73 65 73 2e 61 | libp|curses.a|
|00001150| 20 65 78 69 73 74 73 20 | 6e 6f 20 6c 6f 6e 67 65 | exists |no longe|
|00001160| 72 20 3f 29 2e 0a 3c 2f | 4c 49 3e 0a 3c 4c 49 3e |r ?)..</|LI>.<LI>|
|00001170| 3c 42 3e 6c 69 62 63 75 | 72 73 65 73 2e 61 3c 2f |<B>libcu|rses.a</|
|00001180| 42 3e 20 4e 6f 20 66 6f | 75 72 74 68 20 76 65 72 |B> No fo|urth ver|
|00001190| 73 69 6f 6e 2c 20 62 75 | 74 20 74 68 65 20 6f 72 |sion, bu|t the or|
|000011a0| 69 67 69 6e 61 6c 20 42 | 53 44 20 63 75 72 73 65 |iginal B|SD curse|
|000011b0| 73 0a 20 20 20 20 20 20 | 20 20 20 28 69 6e 20 6d |s. | (in m|
|000011c0| 79 20 73 6c 61 63 6b 77 | 61 72 65 20 32 2e 31 2e |y slackw|are 2.1.|
|000011d0| 30 20 69 74 20 69 73 20 | 74 68 65 20 62 73 64 20 |0 it is |the bsd |
|000011e0| 70 61 63 6b 61 67 65 29 | 2e 0a 3c 2f 4c 49 3e 0a |package)|..</LI>.|
|000011f0| 3c 2f 55 4c 3e 0a 0a 3c | 50 3e 0a 54 68 65 20 64 |</UL>..<|P>.The d|
|00001200| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 73 20 66 |ata stru|ctures f|
|00001210| 6f 72 20 74 68 65 20 73 | 63 72 65 65 6e 20 61 72 |or the s|creen ar|
|00001220| 65 20 63 61 6c 6c 65 64 | 20 3c 49 3e 77 69 6e 64 |e called| <I>wind|
|00001230| 6f 77 73 3c 2f 49 3e 20 | 61 73 20 64 65 66 69 6e |ows</I> |as defin|
|00001240| 65 64 20 69 6e 0a 3c 49 | 3e 6e 63 75 72 73 65 73 |ed in.<I|>ncurses|
|00001250| 2e 68 3c 2f 49 3e 2e 20 | 20 41 20 77 69 6e 64 6f |.h</I>. | A windo|
|00001260| 77 20 69 73 20 73 6f 6d | 65 74 68 69 6e 67 20 6c |w is som|ething l|
|00001270| 69 6b 65 20 61 20 63 68 | 61 72 61 63 74 65 72 0a |ike a ch|aracter.|
|00001280| 61 72 72 61 79 20 69 6e | 20 6d 65 6d 6f 72 79 20 |array in| memory |
|00001290| 77 68 69 63 68 20 74 68 | 65 20 70 72 6f 67 72 61 |which th|e progra|
|000012a0| 6d 6d 65 72 20 63 61 6e | 20 6d 61 6e 69 70 75 6c |mmer can| manipul|
|000012b0| 61 74 65 20 77 69 74 68 | 6f 75 74 0a 6f 75 74 70 |ate with|out.outp|
|000012c0| 75 74 20 74 6f 20 74 68 | 65 20 74 65 72 6d 69 6e |ut to th|e termin|
|000012d0| 61 6c 2e 20 20 54 68 65 | 20 64 65 66 61 75 6c 74 |al. The| default|
|000012e0| 20 77 69 6e 64 6f 77 20 | 69 73 20 3c 49 3e 73 74 | window |is <I>st|
|000012f0| 64 73 63 72 3c 2f 49 3e | 20 77 69 74 68 20 74 68 |dscr</I>| with th|
|00001300| 65 20 73 69 7a 65 20 6f | 66 0a 74 68 65 20 74 65 |e size o|f.the te|
|00001310| 72 6d 69 6e 61 6c 2e 20 | 20 59 6f 75 20 63 61 6e |rminal. | You can|
|00001320| 20 63 72 65 61 74 65 20 | 6f 74 68 65 72 20 77 69 | create |other wi|
|00001330| 6e 64 6f 77 73 20 77 69 | 74 68 20 3c 42 3e 6e 65 |ndows wi|th <B>ne|
|00001340| 77 77 69 6e 28 2e 2e 2e | 29 3c 2f 42 3e 2e 0a 0a |wwin(...|)</B>...|
|00001350| 3c 50 3e 0a 54 6f 20 75 | 70 64 61 74 65 20 74 68 |<P>.To u|pdate th|
|00001360| 65 20 70 68 79 73 69 63 | 61 6c 20 74 65 72 6d 69 |e physic|al termi|
|00001370| 6e 61 6c 20 6f 70 74 69 | 6d 61 6c 6c 79 2c 20 6e |nal opti|mally, n|
|00001380| 63 75 72 73 65 73 20 68 | 61 73 20 61 6e 6f 74 68 |curses h|as anoth|
|00001390| 65 72 20 77 69 6e 64 6f | 77 0a 64 65 63 6c 61 72 |er windo|w.declar|
|000013a0| 65 64 2c 20 3c 49 3e 63 | 75 72 73 63 72 3c 2f 49 |ed, <I>c|urscr</I|
|000013b0| 3e 2e 20 54 68 69 73 20 | 69 73 20 61 6e 20 69 6d |>. This |is an im|
|000013c0| 61 67 65 20 6f 66 20 68 | 6f 77 20 74 68 65 20 74 |age of h|ow the t|
|000013d0| 65 72 6d 69 6e 61 6c 0a | 61 63 74 75 61 6c 6c 79 |erminal.|actually|
|000013e0| 20 6c 6f 6f 6b 73 20 61 | 6e 64 20 3c 49 3e 73 74 | looks a|nd <I>st|
|000013f0| 64 73 63 72 3c 2f 49 3e | 20 69 73 20 61 6e 20 69 |dscr</I>| is an i|
|00001400| 6d 61 67 65 20 6f 66 20 | 68 6f 77 20 74 68 65 20 |mage of |how the |
|00001410| 74 65 72 6d 69 6e 61 6c | 20 73 68 6f 75 6c 64 20 |terminal| should |
|00001420| 6c 6f 6f 6b 2e 0a 54 68 | 65 20 6f 75 74 70 75 74 |look..Th|e output|
|00001430| 20 77 69 6c 6c 20 62 65 | 20 64 6f 6e 65 20 77 68 | will be| done wh|
|00001440| 65 6e 20 79 6f 75 20 63 | 61 6c 6c 20 3c 42 3e 72 |en you c|all <B>r|
|00001450| 65 66 72 65 73 68 28 29 | 3c 2f 42 3e 2e 20 4e 63 |efresh()|</B>. Nc|
|00001460| 75 72 73 65 73 20 77 69 | 6c 6c 20 74 68 65 6e 0a |urses wi|ll then.|
|00001470| 75 70 64 61 74 65 20 3c | 49 3e 63 75 72 73 63 72 |update <|I>curscr|
|00001480| 3c 2f 49 3e 20 61 6e 64 | 20 74 68 65 20 70 68 79 |</I> and| the phy|
|00001490| 73 69 63 61 6c 20 74 65 | 72 6d 69 6e 61 6c 20 77 |sical te|rminal w|
|000014a0| 69 74 68 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 |ith the |informat|
|000014b0| 69 6f 6e 20 69 6e 0a 3c | 49 3e 73 74 64 73 63 72 |ion in.<|I>stdscr|
|000014c0| 3c 2f 49 3e 2e 0a 54 68 | 65 20 6c 69 62 72 61 72 |</I>..Th|e librar|
|000014d0| 79 20 66 75 6e 63 74 69 | 6f 6e 73 20 77 69 6c 6c |y functi|ons will|
|000014e0| 20 75 73 65 20 69 6e 74 | 65 72 6e 61 6c 20 6f 70 | use int|ernal op|
|000014f0| 74 69 6d 69 7a 61 74 69 | 6f 6e 20 66 6f 72 20 74 |timizati|on for t|
|00001500| 68 65 20 75 70 64 61 74 | 65 20 70 72 6f 63 65 73 |he updat|e proces|
|00001510| 73 20 73 6f 20 0a 79 6f | 75 20 63 61 6e 0a 63 68 |s so .yo|u can.ch|
|00001520| 61 6e 67 65 20 64 69 66 | 66 65 72 65 6e 74 20 77 |ange dif|ferent w|
|00001530| 69 6e 64 6f 77 73 20 61 | 6e 64 20 74 68 65 6e 20 |indows a|nd then |
|00001540| 75 70 64 61 74 65 20 74 | 68 65 20 73 63 72 65 65 |update t|he scree|
|00001550| 6e 20 61 74 20 6f 6e 63 | 65 20 69 6e 20 74 68 65 |n at onc|e in the|
|00001560| 20 6d 6f 73 74 0a 6f 70 | 74 69 6d 61 6c 20 77 61 | most.op|timal wa|
|00001570| 79 2e 0a 0a 3c 50 3e 0a | 57 69 74 68 20 74 68 65 |y...<P>.|With the|
|00001580| 20 6e 63 75 72 73 65 73 | 20 66 75 6e 63 74 69 6f | ncurses| functio|
|00001590| 6e 73 20 79 6f 75 20 63 | 61 6e 20 6d 61 6e 69 70 |ns you c|an manip|
|000015a0| 75 6c 61 74 65 20 74 68 | 65 20 64 61 74 61 20 73 |ulate th|e data s|
|000015b0| 74 72 75 63 74 75 72 65 | 0a 3c 49 3e 77 69 6e 64 |tructure|.<I>wind|
|000015c0| 6f 77 3c 2f 49 3e 2e 20 | 46 75 6e 63 74 69 6f 6e |ow</I>. |Function|
|000015d0| 73 20 62 65 67 69 6e 6e | 69 6e 67 20 77 69 74 68 |s beginn|ing with|
|000015e0| 20 3c 49 3e 77 3c 2f 49 | 3e 20 61 6c 6c 6f 77 20 | <I>w</I|> allow |
|000015f0| 79 6f 75 20 74 6f 0a 73 | 70 65 63 69 66 79 20 61 |you to.s|pecify a|
|00001600| 20 3c 49 3e 77 69 6e 64 | 6f 77 3c 2f 49 3e 2c 20 | <I>wind|ow</I>, |
|00001610| 77 68 69 6c 65 0a 6f 74 | 68 65 72 73 20 77 69 6c |while.ot|hers wil|
|00001620| 6c 20 75 73 75 61 6c 6c | 79 20 61 66 66 65 63 74 |l usuall|y affect|
|00001630| 20 3c 49 3e 73 74 64 73 | 63 72 3c 2f 49 3e 2e 20 | <I>stds|cr</I>. |
|00001640| 46 75 6e 63 74 69 6f 6e | 73 20 62 65 67 69 6e 6e |Function|s beginn|
|00001650| 69 6e 67 20 77 69 74 68 | 20 3c 49 3e 6d 76 3c 2f |ing with| <I>mv</|
|00001660| 49 3e 0a 77 69 6c 6c 20 | 6d 6f 76 65 20 74 68 65 |I>.will |move the|
|00001670| 20 63 75 72 73 6f 72 20 | 74 6f 20 74 68 65 20 70 | cursor |to the p|
|00001680| 6f 73 69 74 69 6f 6e 20 | 3c 49 3e 79 2c 78 3c 2f |osition |<I>y,x</|
|00001690| 49 3e 20 66 69 72 73 74 | 2e 0a 0a 3c 50 3e 0a 41 |I> first|...<P>.A|
|000016a0| 20 63 68 61 72 61 63 74 | 65 72 20 68 61 73 20 74 | charact|er has t|
|000016b0| 68 65 20 74 79 70 65 20 | 3c 49 3e 63 68 74 79 70 |he type |<I>chtyp|
|000016c0| 65 3c 2f 49 3e 20 77 68 | 69 63 68 20 69 73 20 3c |e</I> wh|ich is <|
|000016d0| 49 3e 6c 6f 6e 67 20 75 | 6e 73 69 67 6e 65 64 20 |I>long u|nsigned |
|000016e0| 69 6e 74 3c 2f 49 3e 20 | 74 6f 0a 73 74 6f 72 65 |int</I> |to.store|
|000016f0| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 69 6e 66 6f | additio|nal info|
|00001700| 72 6d 61 74 69 6f 6e 20 | 61 62 6f 75 74 20 69 74 |rmation |about it|
|00001710| 20 28 61 74 74 72 69 62 | 75 74 65 73 20 65 74 63 | (attrib|utes etc|
|00001720| 2e 29 2e 0a 0a 3c 50 3e | 0a 4e 63 75 72 73 65 73 |.)...<P>|.Ncurses|
|00001730| 20 75 73 65 20 74 68 65 | 20 3c 49 3e 74 65 72 6d | use the| <I>term|
|00001740| 69 6e 66 6f 3c 2f 49 3e | 20 64 61 74 61 62 61 73 |info</I>| databas|
|00001750| 65 2e 20 4e 6f 72 6d 61 | 6c 6c 79 20 74 68 65 20 |e. Norma|lly the |
|00001760| 64 61 74 61 62 61 73 65 | 20 69 73 0a 6c 6f 63 61 |database| is.loca|
|00001770| 74 65 64 20 69 6e 20 3c | 49 3e 75 73 72 2f 6c 69 |ted in <|I>usr/li|
|00001780| 62 2f 74 65 72 6d 69 6e | 66 6f 2f 3c 2f 49 3e 20 |b/termin|fo/</I> |
|00001790| 61 6e 64 20 6e 63 75 72 | 73 65 73 20 77 69 6c 6c |and ncur|ses will|
|000017a0| 20 6c 6f 6f 6b 20 74 68 | 65 72 65 20 66 6f 72 0a | look th|ere for.|
|000017b0| 6c 6f 63 61 6c 20 74 65 | 72 6d 69 6e 61 6c 20 64 |local te|rminal d|
|000017c0| 65 66 69 6e 69 74 69 6f | 6e 73 2e 20 49 66 20 79 |efinitio|ns. If y|
|000017d0| 6f 75 20 77 61 6e 74 20 | 74 6f 20 74 65 73 74 20 |ou want |to test |
|000017e0| 73 6f 6d 65 20 6f 74 68 | 65 72 0a 64 65 66 69 6e |some oth|er.defin|
|000017f0| 69 74 69 6f 6e 73 20 66 | 6f 72 20 61 20 74 65 72 |itions f|or a ter|
|00001800| 6d 69 6e 61 6c 20 77 69 | 74 68 6f 75 74 20 63 68 |minal wi|thout ch|
|00001810| 61 6e 67 69 6e 67 20 74 | 68 65 20 6f 72 69 67 69 |anging t|he origi|
|00001820| 6e 61 6c 20 74 65 72 6d | 69 6e 66 6f 2c 20 73 65 |nal term|info, se|
|00001830| 74 20 74 68 65 0a 65 6e | 76 69 72 6f 6e 6d 65 6e |t the.en|vironmen|
|00001840| 74 20 76 61 72 69 61 62 | 6c 65 20 3c 49 3e 54 45 |t variab|le <I>TE|
|00001850| 52 4d 49 4e 46 4f 3c 2f | 49 3e 2e 20 4e 63 75 72 |RMINFO</|I>. Ncur|
|00001860| 73 65 73 20 77 69 6c 6c | 20 63 68 65 63 6b 20 74 |ses will| check t|
|00001870| 68 69 73 20 76 61 72 69 | 61 62 6c 65 0a 61 6e 64 |his vari|able.and|
|00001880| 20 75 73 65 20 74 68 65 | 20 64 65 66 69 6e 69 74 | use the| definit|
|00001890| 69 6f 6e 73 20 73 74 6f | 72 65 64 20 74 68 65 72 |ions sto|red ther|
|000018a0| 65 20 69 6e 73 74 65 61 | 64 20 6f 66 20 2f 75 73 |e instea|d of /us|
|000018b0| 72 2f 6c 69 62 2f 74 65 | 72 6d 69 6e 66 6f 2f 2e |r/lib/te|rminfo/.|
|000018c0| 0a 0a 3c 50 3e 0a 43 75 | 72 72 65 6e 74 20 6e 63 |..<P>.Cu|rrent nc|
|000018d0| 75 72 73 65 73 20 76 65 | 72 73 69 6f 6e 20 69 73 |urses ve|rsion is|
|000018e0| 20 31 2e 38 2e 36 28 2e | 0a 0a 3c 50 3e 0a 41 74 | 1.8.6(.|..<P>.At|
|000018f0| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 69 73 | the end| of this|
|00001900| 20 63 68 61 70 74 65 72 | 20 79 6f 75 20 63 61 6e | chapter| you can|
|00001910| 20 66 69 6e 64 20 61 20 | 74 61 62 6c 65 20 77 69 | find a |table wi|
|00001920| 74 68 20 61 6e 20 6f 76 | 65 72 76 69 65 77 20 66 |th an ov|erview f|
|00001930| 6f 72 0a 74 68 65 20 42 | 53 44 2d 43 75 72 73 65 |or.the B|SD-Curse|
|00001940| 73 2c 20 6e 63 75 72 73 | 65 73 20 61 6e 64 20 74 |s, ncurs|es and t|
|00001950| 68 65 20 63 75 72 73 65 | 73 20 66 72 6f 6d 20 53 |he curse|s from S|
|00001960| 75 6e 2d 4f 53 20 35 2e | 34 2e 20 52 65 66 65 72 |un-OS 5.|4. Refer|
|00001970| 20 74 6f 20 69 74 0a 77 | 68 65 6e 20 79 6f 75 20 | to it.w|hen you |
|00001980| 77 61 6e 74 20 74 6f 20 | 6c 6f 6f 6b 20 66 6f 72 |want to |look for|
|00001990| 20 61 20 73 70 65 63 69 | 66 69 63 20 66 75 6e 63 | a speci|fic func|
|000019a0| 74 69 6f 6e 20 61 6e 64 | 20 77 68 65 72 65 20 69 |tion and| where i|
|000019b0| 74 20 69 73 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |t is imp|lemented|
|000019c0| 2e 0a 0a 3c 50 3e 0a 0a | 3c 48 52 3e 0a 0a 3c 2f |...<P>..|<HR>..</|
|000019d0| 42 4f 44 59 3e 0a 3c 2f | 48 54 4d 4c 3e 0a |BODY>.</|HTML>. |
+--------+-------------------------+-------------------------+--------+--------+